import axios from 'axios';

// 附件分类列表
let cate_list = (params) => axios.get('/file/category', { params });

// 附件列表
let file_list = (params) => axios.get('/file/file', { params });

// 图片上传
let img_upload = (data) => axios.post('/file/upload/:', data);

//附件删除
let file_del = (data) => axios.post('/file/file/delete', data);

// 修改附件分类
let set_file_cate = (data) => axios.put('/file/file/do_move', data);

export default {
    cate_list,
    file_list,
    img_upload,
    file_del,
    set_file_cate,
}